home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3305 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: TMapping again!
  5. Date: 12 Feb 1996 17:29:07 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4fntd3$g56@sunsystem5.informatik.tu-muenchen.de>
  9. References: <4e38rv$9ic@sunsystem5.informatik.tu-muenchen.de> <4f4p95$hj6@oreig.uji.es> <38232328@kone.fipnet.fi> <4fen2i$eag@maureen.teleport.com> <38232371@kone.fipnet.fi>
  10. NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
  11. Originator: fischerj@hphalle5.informatik.tu-muenchen.de
  12.  
  13.  
  14. In article <38232371@kone.fipnet.fi>, "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi> writes:
  15. |> 
  16. |> > : Actually this is better on 80x86, too.
  17. |> > 
  18. |> >  What is best on the 80x86? 80x86 does less memory access during
  19. |> >  a tmap polygon loop? 
  20. |> 
  21. |> More propably because of the lack of registers, but I would
  22. |> interpolate the edges while drawing on both 680x0 and 80x86,
  23. |> not calculating them beforehand to a table.
  24. |> 
  25. |> How about making a ultra-optimized Texture/Gouraud triangle
  26. |> routine with a shading table?
  27.  
  28. A ultraoptimized texturemapper uese no shading table.
  29. even add-shading slows mapping down.
  30.  
  31. Imgagine 32 colors, each 8 shading-steps = 256 colors.
  32.  
  33.  
  34. move.w d1,d6
  35. move.b d0,d6
  36. move.l d6,a0
  37. move.b (a0),d7
  38. sub.b d5,d7       ;another 2 cycles
  39. move.b d7,(a1)+   ;another 2 cycles
  40.  
  41. addx.l d2,d0 ;x
  42. addx.l d3,d1 ;y
  43. addx.l d4,d5 ;gouraud-alike color. ;another 2 cycles
  44.  
  45.  
  46. no reg left for dbra loop. 2 more cycles in unrolled loop.
  47.  
  48. in inner-loop another 6 additional cycles compared to 
  49. nonshaded mapping. +30%.
  50.  
  51. I guess with table it's more like +70%.
  52.  
  53. I see the disadvantage is you got less colors.
  54. But maybe with using a special palette-setup you
  55. can do tricks.
  56.  
  57. |> 
  58. |> --                               _
  59. |> a Stellar programmer          _ //
  60. |> "Amiga - back for the future" \X/
  61. ------------------------------------------------------------------------
  62.    fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)   =:)
  63.  
  64.